package com.wwwarehouse.resource_center.fragment.binding_location_code;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.wwwarehouse.common.activity.base.BaseFragment;
import com.wwwarehouse.resource_center.R;

/**
 * Created by xiaoke.ni on 2017/11/16.
 * 绑定结果
 */
public class BLCBindingFinishFragment extends BaseFragment implements View.OnClickListener {

    private View mView;

    private Button mRingBtn;

    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mView = inflater.inflate(R.layout.fragment_blc_binding_finish, container, false);
        return mView;
    }

    @Override
    public void onClick(View v) {
        int id = v.getId();
        if (id == R.id.ring_btn){

        }
    }

    @Override
    public void setTitle() {
        if (peekFragment() instanceof BLCBindingLocationCodeFragment) {
            mActivity.setTitle(getString(R.string.resource_blc_binding_finish_code));
        }
    }

    @Override
    public void requestDatas() {
        initView();
        initEvent();
        initData();
    }

    private void initData() {
    }

    private void initEvent() {
        mRingBtn.setOnClickListener(this);
    }

    private void initView() {
        mRingBtn = (Button) mView.findViewById(R.id.ring_btn);
    }

}
